home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Scope
/
Scope Disk #084 (199x)(Scope PD)(US)[WB].zip
/
Scope Disk #084 (199x)(Scope PD)(US)[WB].adf
/
CheckFit
/
CheckFit.doc
< prev
next >
Wrap
Text File
|
1989-07-09
|
2KB
|
28 lines
CHECKFIT
Format: CHECKFIT [FILENAME]<file>[DRIVE]<drive>[Q][QUIET]
Template: CHECKFIT "FILENAME/A,DRIVE/A,Q=QUIET/S"
Purpose: To determine if there is enough room for the file on the drive
Specification:
CHECKFIT determines the size of the file and the free space remaining on
the given device. The device can be a floppy drive, hard disk, or the
recoverable RAM device VD0:, however it will not work on the RAM: device
because that device does not return a proper value for the number of
blocks available. (It returns the number of blocks in use for both the
values NumBlocks and NumBlocksUsed, so it always looks as if there are
none available. See Info.)
The QUIET switch (or alternatively Q) will prevent all console output
with the exception of reporting of errors in the command syntax. Use of
the switch does not prevent the issuing of return codes. It is provided
for use in a script file where console output is not desired and error
detection is accomplished with IF statements.
The return codes are 0 for there being room enough on the device for
the file, 10 (FAIL) if there is not enough room, and 20 (ERROR) if an
error in command syntax is made or the file or device cannot be found.
This command was written in BCPL by Joseph M. Hinkle, Lopez, Washington
98261, and is freely distributable on bulletin boards not charging for
their services. The source code and this file is Copyright © 1989 by
Joseph M. Hinkle. A shareware fee of $2.00 sent to the address above
would be appropriate.